Optimal. Leaf size=60 \[ -\frac {2 b p}{3 a x}-\frac {2 b^{3/2} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{3 a^{3/2}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{3 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2505, 331, 211}
\begin {gather*} -\frac {2 b^{3/2} p \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{3 a^{3/2}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{3 x^3}-\frac {2 b p}{3 a x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 331
Rule 2505
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (a+b x^2\right )^p\right )}{x^4} \, dx &=-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{3 x^3}+\frac {1}{3} (2 b p) \int \frac {1}{x^2 \left (a+b x^2\right )} \, dx\\ &=-\frac {2 b p}{3 a x}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{3 x^3}-\frac {\left (2 b^2 p\right ) \int \frac {1}{a+b x^2} \, dx}{3 a}\\ &=-\frac {2 b p}{3 a x}-\frac {2 b^{3/2} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{3 a^{3/2}}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{3 x^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.00, size = 49, normalized size = 0.82 \begin {gather*} -\frac {2 b p \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {b x^2}{a}\right )}{3 a x}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{3 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.32, size = 211, normalized size = 3.52
method | result | size |
risch | \(-\frac {\ln \left (\left (b \,x^{2}+a \right )^{p}\right )}{3 x^{3}}-\frac {i \pi a \,\mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2}-i \pi a \,\mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-i \pi a \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{3}+i \pi a \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-2 \left (\munderset {\textit {\_R} =\RootOf \left (a^{3} \textit {\_Z}^{2}+b^{3} p^{2}\right )}{\sum }\textit {\_R} \ln \left (\left (3 a^{3} \textit {\_R}^{2}+2 b^{3} p^{2}\right ) x +a^{2} b p \textit {\_R} \right )\right ) x^{3} a +4 x^{2} p b +2 \ln \left (c \right ) a}{6 x^{3} a}\) | \(211\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 49, normalized size = 0.82 \begin {gather*} -\frac {2}{3} \, b p {\left (\frac {b \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} a} + \frac {1}{a x}\right )} - \frac {\log \left ({\left (b x^{2} + a\right )}^{p} c\right )}{3 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 135, normalized size = 2.25 \begin {gather*} \left [\frac {b p x^{3} \sqrt {-\frac {b}{a}} \log \left (\frac {b x^{2} - 2 \, a x \sqrt {-\frac {b}{a}} - a}{b x^{2} + a}\right ) - 2 \, b p x^{2} - a p \log \left (b x^{2} + a\right ) - a \log \left (c\right )}{3 \, a x^{3}}, -\frac {2 \, b p x^{3} \sqrt {\frac {b}{a}} \arctan \left (x \sqrt {\frac {b}{a}}\right ) + 2 \, b p x^{2} + a p \log \left (b x^{2} + a\right ) + a \log \left (c\right )}{3 \, a x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 479 vs.
\(2 (56) = 112\).
time = 40.55, size = 479, normalized size = 7.98 \begin {gather*} \begin {cases} - \frac {\log {\left (0^{p} c \right )}}{3 x^{3}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {\log {\left (a^{p} c \right )}}{3 x^{3}} & \text {for}\: b = 0 \\- \frac {2 p}{9 x^{3}} - \frac {\log {\left (c \left (b x^{2}\right )^{p} \right )}}{3 x^{3}} & \text {for}\: a = 0 \\- \frac {a^{2} \sqrt {- \frac {a}{b}} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{3 a^{2} x^{3} \sqrt {- \frac {a}{b}} + 3 a b x^{5} \sqrt {- \frac {a}{b}}} - \frac {2 a p x^{3} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} - \frac {2 a p x^{2} \sqrt {- \frac {a}{b}}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} + \frac {a x^{3} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} - \frac {a x^{2} \sqrt {- \frac {a}{b}} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} - \frac {2 b p x^{5} \log {\left (x - \sqrt {- \frac {a}{b}} \right )}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} - \frac {2 b p x^{4} \sqrt {- \frac {a}{b}}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} + \frac {b x^{5} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{\frac {3 a^{2} x^{3} \sqrt {- \frac {a}{b}}}{b} + 3 a x^{5} \sqrt {- \frac {a}{b}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.61, size = 58, normalized size = 0.97 \begin {gather*} -\frac {2 \, b^{2} p \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{3 \, \sqrt {a b} a} - \frac {p \log \left (b x^{2} + a\right )}{3 \, x^{3}} - \frac {2 \, b p x^{2} + a \log \left (c\right )}{3 \, a x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.25, size = 46, normalized size = 0.77 \begin {gather*} -\frac {\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}{3\,x^3}-\frac {2\,b^{3/2}\,p\,\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{3\,a^{3/2}}-\frac {2\,b\,p}{3\,a\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________